package com.hice.demo.java.concurrent.lock;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author hyson
 * @create 2017-03-13 13:19
 */
public class ReentrantDemo {

    public static void main(String[] args) {
        Lock lock = new ReentrantLock();

        lock.lock();
        //critical section

        lock.unlock();
    }
}
